package com.zyf.pattern.observer.guava;

import com.google.common.eventbus.EventBus;

/**
 * create by yifeng
 */
public class GuavaEventTest {
    public static void main(String[] args) {
        // 消息总线
        EventBus eventBus = new EventBus();

        GuavaEvent guavaEvent = new GuavaEvent();
        eventBus.register(guavaEvent);
        eventBus.post("yifeng");
    }
}
